/*
 * @Author: your name
 * @Date: 2021-08-31 20:22:28
 * @LastEditTime: 2021-09-03 19:21:52
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \新建文件夹 (6)\broker\src\router\index.js
 */
import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path:'/',
    redirect:'/login'
  },
  {
    path: '/home',
    name: 'Home',
    component: () => import(/* webpackChunkName: "home" */ '../views/home/Home.vue'),
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import(/* webpackChunkName: "login" */ '../views/login/Login.vue')
  },
  {
    path:'/detail',
    name:'Detail',
    component: () => import(/* webpackChunkName: "detail" */ '../views/detail/Detail.vue')
  },

  {
    path: '/newHouse',
    name: 'NewHouse',
    component: () => import(/* webpackChunkName: "newHouse" */ '../views/newHouse/NewHouse.vue'),
  },
  {
    path: '/message',
    name: 'message',
    // route level code-splitting
    // this generates a separate chunk (message.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "message" */ '../views/message/Message.vue')
  },
  {
    path: '/liaotian',
    name: 'liaotian',
    component: () =>import(/* webpackChunkName: "message" */'../views/message/liaotiao/index.vue')
    // route level code-splitting
    // this generates a separate chunk (liaotian.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
  },
  {
    path:'/secondRoom',
    name:'SecondRoom',
    component: () => import(/* webpackChunkName: "secondRoom" */ '../views/secondRoom/SecondRoom.vue'),
  },
  {
    path:'/rentOut',
    name:'RentOut',
    component: () => import(/* webpackChunkName: "rentOut" */ '../views/rentOut/RentOut.vue'),
  },
  {
    path:'/map',
    name:'Map',
    component: () => import(/* webpackChunkName: "map" */ '../views/map/Map.vue')
  },
  {
    path:'/city',
    name:'City',
    component: () => import(/* webpackChunkName: "city" */ '../views/city/City.vue')
  },
  {
    path:'/area',
    name:'Area',
    component: () => import(/* webpackChunkName: "area" */ '../views/area/Area.vue')
  },
  {
    path:'/price',
    name:'Price',
    component: () => import(/* webpackChunkName: "price" */ '../views/price/Price.vue')
  },
  {
    path:'/roomType',
    name:'RoomType',
    component: () => import(/* webpackChunkName: "roomType" */ '../views/roomType/RoomType.vue')
  },
  {
   
   
    path:'/zhibo',
    name:'Zhibo',
    component: () => import(/* webpackChunkName: "newHouse" */ '../views/zhibo/Zhibo.vue')
  },
  {
    path:'/live',
    name:'Live',
    component: () => import(/* webpackChunkName: "newHouse" */ '../views/zhibo/Live.vue')
  },
  {
    path:'/floor',
    name:'Floor',
    component: () => import(/* webpackChunkName: "newHouse" */ '../views/loushiquan/Floor.vue')
  },
  {
    path:'/hh',
    name:'Hh',
    component: () => import(/* webpackChunkName: "newHouse" */ '../views/loushiquan/Hh.vue')
  },
  {
    path:'/shop',
    name:'Shop',
    component: () => import(/* webpackChunkName: "shop" */ '../views/shop/Shop.vue')
  },
  {
    path:'/building',
    name:'Building',
    component: () => import(/* webpackChunkName: "building" */ '../views/building/Building.vue')
  },
  {
    path:'/plot',
    name:'Plot',
    component: () => import(/* webpackChunkName: "plot" */ '../views/plot/Plot.vue')
  },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (liaotian.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "liaotian" */ '../views/message/liaotiao')
  },
  {
    path: '/qiuzu',
    name: 'qiuzu',
    // route level code-splitting
    // this generates a separate chunk (qiuzu.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "qiuzu" */ '../views/qiuzu')
  },
  {
    path: '/qiugou',
    name: 'qiugou',
    // route level code-splitting
    // this generates a separate chunk (qiugou.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "qiugou" */ '../views/qiugou')
  },
  {
    path: '/jianpan',
    name: 'jianpan',
    // route level code-splitting
    // this generates a separate chunk (jianpan.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "jianpan" */ '../views/jianpan')
  },
  {
    path:'/standings',
    name:'Standings',
    component: () => import(/* webpackChunkName: "standings" */ '../views/standings/Standings.vue'),
    children:[
      {
        path:'/standings/standings1',
        name:'Standings1',
        component: () => import(/* webpackChunkName: "standings1" */ '../views/standings/Standings1.vue'),
      },
      {
        path:'/standings/standings2',
        name:'Standings2',
        component: () => import(/* webpackChunkName: "standings2" */ '../views/standings/Standings2.vue'),
      },
    ]
  },

  {
    path: '/tuan',
    name: 'tuan',
    component: () => import(/* webpackChunkName: "about" */ '../views/tuan/tuan.vue')
  },
  {
    path: '/xiang/:id',
    name: 'xiang',
    component: () => import(/* webpackChunkName: "about" */ '../views/tuan/xiang.vue')
  },
  {
    path: '/chuang',
    name: 'chuang',
    component: () => import(/* webpackChunkName: "about" */ '../views/tuan/chuang.vue')
  },
  {
    path: '/kai/:id',
    name: 'kai',
    component: () => import(/* webpackChunkName: "about" */ '../views/tuan/kai.vue')
  },
  {
    path: '/top',
    name: 'Top',
    component: () => import(/* webpackChunkName: "about" */ '../views/top/Top.vue')
  },
  {
    path: '/detailed/:id',
    name: 'Detailed',
    component: () => import(/* webpackChunkName: "about" */ '../views/detailed/Detailed.vue')
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
